package org.totoro.concurrent.pool;

import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;


public class ExecutorsTest {

    public static void main(String[] args) throws InterruptedException {



        ThreadPoolExecutor executorService = (ThreadPoolExecutor) Executors.newFixedThreadPool(1);

        executorService.submit(() -> {
            System.out.println("---------");
        });

        executorService.submit(() -> {
            System.out.println("+++++");
        });


        Thread.sleep(10000000);
    }


}
